from airflow.models.idata_task import Task
from airflow.utils.session import create_session

with create_session() as session:
    task = Task.get_task(18)
    task.create_operator()
    cmd = task.get_task_command()
    print(cmd)